<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui">

    <body>
        <ui:composition template="./../Template/generalTemplate.xhtml">
            <ui:define name="content">
                <f:view beforePhase="#{searchResultManagedBean.initView}"> 
                    <h:form id="form">
                        <p:panel id="search" header="Search Result" style="height:495px;">
                            <div style="margin-left:50px;margin-right:50px;margin-top:30px;">
                                <p:growl id="msgs" showDetail="true" /> 
                                <p:dataTable id="employees" value="#{searchResultManagedBean.employees}" var="employeeList" paginator="true" rows="6">
                                    <p:column headerText="Name">
                                        <h:outputText value="#{employeeList.name}"/>
                                    </p:column>
                                    <p:column headerText="User Name">
                                        <h:outputText value="#{employeeList.userName}"/>
                                    </p:column>
                                    <p:column headerText="Department">
                                        <h:outputText value="#{employeeList.department}"/>
                                    </p:column>
                                    <p:column headerText="Contact Number">
                                        <h:outputText value="#{employeeList.contactNumber}"/>
                                    </p:column>
                                </p:dataTable>
                            </div>
                        </p:panel>
                    </h:form>
                </f:view>
            </ui:define>
        </ui:composition>
    </body>
</html>